print("几个得")
gather = {"xiaohei", "xiaobai", "xiaohong", "xiaoli", 1, 2, 3}
gather2={"xaioliu","xiaohong",1,3,5}
print(gather)
gather.remove(3)
print("取出元素3：",gather)
element = gather.pop()
print("随机取出元素是：", element)
print("取出元素得内容是：", gather)
gather3=gather.difference(gather2)
print("两个集合得差集是：",gather3)
gather4=gather.union(gather2)
print("两个集合得合并是:",gather4)
# gather.difference_update(gather2)
print(gather)
num= len(gather)
num2= len(gather2)
print("集合1得数量是：",num,"集合2得数量是：",num2)
for i in gather:
    print(i)
